package com.zhangzhan.blog_api.controller;


import com.zhangzhan.base.common_model.result.ResponseResult;
import com.zhangzhan.blog_model.vos.GetAllLinkVo;
import com.zhangzhan.blog_service.service.LinkService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 友链 前端控制器
 * </p>
 *
 * @author zhangzhan
 * @since 2024-02-01
 */
@RestController
@RequestMapping("/link")
public class LinkController {

    @Autowired
    private LinkService linkService;

    @ApiOperation(value = "友联查询")
    @RequestMapping(value = "/getAllLink", method = RequestMethod.GET)
    public ResponseResult<List<GetAllLinkVo>> getAllLink() {
        return linkService.getAllLink();
    }

}

